how to insert ele in python

33

list1 = [ 1, 2, 3, 4, 5, 6, 7 ] 
  
# insert 10 at 4th index 
list1.insert(4, 10) 
print(list1)

Comments

Submit
0 Comments